package com.lj.sys.enums;

import cn.hutool.core.map.MapUtil;
import com.lj.common.enums.EnumDict;
import com.lj.common.enums.ICommonEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Map;

/**
 * @author luojing
 * @since 2024/11/26 14:53
 */
@AllArgsConstructor
@Getter
@EnumDict(name = "Gender", description = "性别")
public enum GenderEnum implements ICommonEnum<Integer> {

    WOMAN(0, "女", MapUtil.<String, Object>builder()
            .put("tagType", "success")
            .build()),
    MAN(1, "男", MapUtil.<String, Object>builder()
            .put("tagType", "primary")
            .build());


    private final Integer value;
    private final String desc;
    private final Map<String, Object> extend;
}
